<template>
	<view style="display: flex;align-items: center;justify-content: center;">
		<view style="margin-top: 300rpx;" @click="open">{{areaStr}}</view>
		<xy-area-popup ref="areaPopup" @area-select="onAreaSelect"></xy-area-popup>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				areaStr: '点我弹出地址选择'
			}
		},
		onLoad() {

		},
		methods: {
			open() {
				this.$refs.areaPopup.open()				
			},
			onAreaSelect(areaStr) {
				console.log('areaStr',areaStr);
				this.areaStr = areaStr
			},
		}
	}
</script>

<style>

</style>
